<%@page contentType="text/plain" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
{
"result" : "<c:out value="${result}"/>",
"errorMsg" : "<c:out value="${errorMsg}"/>",
"ingredients" : {
<c:forEach var="ingredient" items="${ingredients}">
    "${ingredient.id}": {
        "id": "${ingredient.id}",
        "name": "<c:out value="${ingredient.name}"/>",
        "defaultWare": { "id": "${ingredient.defaultWare.id}", "name": "<c:out value="${ingredient.defaultWare.name}"/>" }
    },
</c:forEach>
    "endMarker": "0"
},
"defWaresViews" : {
<c:forEach var="defWareView" items="${defWaresViews}">
    "${defWareView.ware.id}": {
        "regionPrice": "<c:out value="${defWareView.wareRegionPriceStrValue}"/>",
        "userPrice": "<c:out value="${defWareView.wareUserPriceStrValue}"/>"
    },
</c:forEach>
    "endMarker": "0"
},
<c:if test="${message != null}">"message" : "<c:out value="${message}"/>",</c:if>
"formHtml" :
"<spring:escapeBody javaScriptEscape="true" htmlEscape="false">
<c:import url="ingredientsList.jsp"/>
</spring:escapeBody>"
}